import service from '@/utils/request'
// @Tags JudgmentReason
// @Summary 创建裁判理由管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentReason true "创建裁判理由管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /jrg/createJudgmentReason [post]
export const createJudgmentReason = (data) => {
  return service({
    url: '/jrg/createJudgmentReason',
    method: 'post',
    data
  })
}

// @Tags JudgmentReason
// @Summary 删除裁判理由管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentReason true "删除裁判理由管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /jrg/deleteJudgmentReason [delete]
export const deleteJudgmentReason = (params) => {
  return service({
    url: '/jrg/deleteJudgmentReason',
    method: 'delete',
    params
  })
}

// @Tags JudgmentReason
// @Summary 批量删除裁判理由管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除裁判理由管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /jrg/deleteJudgmentReason [delete]
export const deleteJudgmentReasonByIds = (params) => {
  return service({
    url: '/jrg/deleteJudgmentReasonByIds',
    method: 'delete',
    params
  })
}

// @Tags JudgmentReason
// @Summary 更新裁判理由管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentReason true "更新裁判理由管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /jrg/updateJudgmentReason [put]
export const updateJudgmentReason = (data) => {
  return service({
    url: '/jrg/updateJudgmentReason',
    method: 'put',
    data
  })
}

// @Tags JudgmentReason
// @Summary 用id查询裁判理由管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.JudgmentReason true "用id查询裁判理由管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /jrg/findJudgmentReason [get]
export const findJudgmentReason = (params) => {
  return service({
    url: '/jrg/findJudgmentReason',
    method: 'get',
    params
  })
}

// @Tags JudgmentReason
// @Summary 分页获取裁判理由管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取裁判理由管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /jrg/getJudgmentReasonList [get]
export const getJudgmentReasonList = (params) => {
  return service({
    url: '/jrg/getJudgmentReasonList',
    method: 'get',
    params
  })
}

// @Tags JudgmentReason
// @Summary 不需要鉴权的裁判理由管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.JudgmentReasonSearch true "分页获取裁判理由管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /jrg/getJudgmentReasonPublic [get]
export const getJudgmentReasonPublic = () => {
  return service({
    url: '/jrg/getJudgmentReasonPublic',
    method: 'get',
  })
}
